﻿@model List<ManyToManyEntityFramework.Models.StudentIndexViewModel>
           <br />
@foreach (var m in Model) 
{
    <div class="well">
        <h1>@m.Name</h1>
        <h2>@m.grade</h2>
        <h2>@m.StudentId</h2>
        @foreach (var c in m.StudentCourses)
        {
            <h1>@c.Name</h1>
            <h2>@c.NumCredits</h2>
        }
    </div>
}

